﻿@model MvcPrinciples.Models.Reward

@{
    ViewBag.Title = "EditReward";
    Layout = "~/Views/_CommonLayout.cshtml";
}


<div>
	<h2>Add new reward:</h2>
	<div>
		@using (Html.BeginForm("EditRewardInList", "Reward", FormMethod.Post, new { enctype = "multipart/form-data" }))
		{
			<fieldset>
				<p>Title: <input type="text" name="title" value="@Model.Title" /></p>
				<p>Description: <input type="text" name="description" value="@Model.Description" /></p>
				<p>Image: <input type="file" name="imageFile" /></p> 
				<p style="display: none">Id: <input type="text" name="id" value="@Model.Id" /></p>
				<p><input type="submit" value="Submit" /></p>
			</fieldset>
		}
	</div>
</div>

